CONFIG(debug, debug|release) {
    PREFIXNAME = handipaint-debug
} else {
    PREFIXNAME = handipaint-release
}

win32 {
    PREFIX = C://$$PREFIXNAME
    QT_SRC_3RDPARTY = C:/QtSDK/QtSources/4.8.0/src/3rdparty
}

unix {
    PREFIX = /tmp/$$PREFIXNAME
    QT_SRC_3RDPARTY = /needtofindright3rdpartypathonunix
}

TEMPLATE = lib
CONFIG += qt warn_on
QT -= gui
DEPENDPATH += .
INCLUDEPATH += .

DEFINES += QUAZIP_BUILD
CONFIG(staticlib): DEFINES += QUAZIP_STATIC

contains(QT_CONFIG, zlib):include($$QT_SRC_3RDPARTY/zlib.pri)
else:include($$QT_SRC_3RDPARTY/zlib_dependency.pri)

# Input
HEADERS += \
    crypt.h\
    ioapi.h\
    JlCompress.h\
    quaadler32.h\
    quachecksum32.h\
    quacrc32.h\
    quazip.h\
    quazipfile.h\
    quazipfileinfo.h\
    quazipnewinfo.h\
    quazip_global.h\
    unzip.h\
    zip.h\

SOURCES += *.c *.cpp

unix {
    headers.path=$$PREFIX/include/quazip
    headers.files=$$HEADERS
    target.path=$$PREFIX
    INSTALLS += headers target

	OBJECTS_DIR=.obj
	MOC_DIR=.moc
}

win32 {
    headers.path=$$PREFIX/include/quazip
    headers.files=$$HEADERS
    target.path=$$PREFIX
    INSTALLS += headers target
}
